package com.game.server.message.proto.execute;

import com.comm.ISession;

import com.game.majiang.logic.LogicClient;
import com.game.majiang.logic.LogicServer;
import com.game.server.message.proto.in.AbstractMyGameWinRateDataReq;
import com.game.server.message.proto.out.MyGameWinRateDataRsp;

public class MyGameWinRateDataReq extends AbstractMyGameWinRateDataReq {

    @Override
    public void Execute(ISession session) {
        LogicClient client = (LogicClient) LogicServer.getInstance().getClient(session.getId());
        if (client != null&&client.checkClick(msgcode)) {
            MyGameWinRateDataRsp rsp = new MyGameWinRateDataRsp();
            rsp.setZongjucount(client.getVo().getZongjucount());
            rsp.setZongshoucount(client.getVo().getZongshoucount());
            rsp.setZongshouwincount(client.getVo().getZongshouwincount());
            rsp.setZupaicount(client.getVo().getZupaicount());
            rsp.setZupaiwincount(client.getVo().getZupaiwincount());
            rsp.setZongwinjucount(client.getVo().getZongwinjucount());
            rsp.setZonglosejucount(client.getVo().getZonglosejucount());
            client.Send(rsp);
        }
    }

}
